package com.cloudptt.api.models.lbs;

public class VitalData
{
	private long workHours = 0;
	private int heartRate = 0;
	private String oxygenVolume = "";
	private int battery = 100;
	private String callDesp = "000";
	
	public static VitalData getDefaultVitalData()
	{
		return new VitalData();
	}
	public VitalData()
	{}
	public VitalData(long workHours,int heartRate,String oxygenVolume,int battery,String callDesp)
	{
		this.workHours = workHours;
		this.heartRate = heartRate;
		this.oxygenVolume = oxygenVolume;
		this.battery = battery;
		this.callDesp = callDesp;
	}
	
	public long getWorkHours()
	{
		return workHours;
	}
	public void setWorkHours(long workHours)
	{
		this.workHours = workHours;
	}
	public int getHeartRate()
	{
		return heartRate;
	}
	public void setHeartRate(int heartRate)
	{
		this.heartRate = heartRate;
	}
	public String getOxygenVolume()
	{
		return oxygenVolume;
	}
	public void setOxygenVolume(String oxygenVolume)
	{
		this.oxygenVolume = oxygenVolume;
	}
	public int getBattery() {
		return battery;
	}
	public void setBattery(int battery) {
		this.battery = battery;
	}
	public String getCallDesp() {
		return callDesp;
	}
	public void setCallDesp(String callDesp) {
		this.callDesp = callDesp;
	}

	public String toString()
	{
		StringBuffer strBuff = new StringBuffer();
		strBuff.append("<Vi>");
		
		strBuff.append("<Wo>");
		strBuff.append(workHours);
		strBuff.append("</Wo>");
	
		strBuff.append("<He>");
		strBuff.append(heartRate);
		strBuff.append("</He>");
		
		/*strBuff.append("<Oxygen>");
		strBuff.append(vitalData.getOxygenVolume());
		strBuff.append("</Oxygen>");*/
		
		strBuff.append("<By>");
		strBuff.append(battery);
		strBuff.append("</By>");
		
		strBuff.append("<Cs>");
		strBuff.append(callDesp);
		strBuff.append("</Cs>");
		
		strBuff.append("</Vi>");
		
		return strBuff.toString();
	}
}
